#!/bin/bash

for file in $(ls *.png | egrep -v thumbnail); do
    basename=$(basename $file .png)
    convert $file -resize 40% "$basename-thumbnail.png"
done
